package com.one.rope.mvp.basecore.util;

/**
 * Number工具类
 */
public class NumberUtils {

  /**
   * 判断数字为Null或All
   *
   * @param i Integer
   */
  public static boolean isNullOrAll(Integer i) {
    if ((null == i) || (-1 == i)) {
      return true;
    }
    return false;
  }

  /**
   * 判断数字为Null或All
   *
   * @param l Long
   */
  public static boolean isNullOrAll(Long l) {
    if ((null == l) || (-1 == l)) {
      return true;
    }
    return false;
  }

  /**
   * 判断数字为Null或All
   *
   * @param s Short
   */
  public static boolean isNullOrAll(Short s) {
    if ((null == s) || (-1 == s)) {
      return true;
    }
    return false;
  }

  /**
   * 判断数字为Null
   *
   * @param l Long
   */
  public static boolean isNull(Long l) {
    if ((null == l)) {
      return true;
    }
    return false;
  }


}
